Skip to main content

ModifyCreateVulWhitelist

Description

Call the ModifyCreateVulWhitelist interface to add a whitelist of vulnerabilities. The vulnerabilities added to the whitelist are no longer displayed in the alarm prompt.

Request Method

POST

Request Path

/apsara/route/Sas/ModifyCreateVulWhitelist

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
WhitelistBODYstringNo[{"name":"oval:com.redhat.rhsa:def:20173263","type":"cve","aliasName":"RHSA-2017:3263: curl security update"}]vulnerability information added to the whitelist, JSON format.
versionBODYstringNo2016-01-01version of api
ReasonBODYstringNoconfirm that the vulnerability is not harmfulexplain the reason for adding the whitelist.

Return data

NameTypeSample valueDescription
RequestIdstringDFE4F166-1AC9-4FAC-A4E4-F0608AD705A6request ID of the result.

Example

Successful Response example

{
"RequestId":"DFE4F166-1AC9-4FAC-A4E4-F0608AD705A6"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}